package tests;

import utilities.MathUtils;
import utilities.Printers;

public class TestDiag {

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		System.out.println( "Test diag started" );
		

		double[][] M = new double[][] {
			new double[] { 1,4,7,1,1 },
			new double[] { 1,6,6,4,5 },
			new double[] { 6,0,2,2,8 },
			new double[] { 4,7,7,3,6 },
			new double[] { 2,5,3,9,4 },
			new double[] { 6,8,5,8,3 },
		};
		
		double[][] diag = MathUtils.reductToDiag( M );
		System.out.println( "Diagonalized matrix:" );
		Printers.printSystem( diag , System.out );
		System.out.println( "===================================" );
		
		System.out.println( "Test diag finished" );
	}

}
